package com.example.s04mybaitsplus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("booktable")
public class Book {
    @TableId
    private String isbn;
    @TableField(value = "bookName")
    private String bookName;
    private String author;
    private String publisher;


    @TableField(value = "publishTime")
    private String publishTime;


    private String price;
    private String content;
    @TableField(value = "categoryName")

    private String categoryName;

    private String state;
    @TableField(value = "isDelete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;
    @TableField(exist = false)
    private String temp;
}
